// 引入路由
import { createRouter, createWebHashHistory } from "vue-router";

// 路由配置
const routes = [
  {
    path: "/", // 路由路径
    name: "HelloWorld", // 路由名称
    component: () => import("../../src/components/HelloWorld.vue"),
  },
  {
    path: "/Icu",
    name: "Icu",
    component: () => import("../../src/components/Icu.vue"),
  },
  {
    path: "/diseaseStatistics",
    name: "diseaseStatistics",
    component: () => import("../../src/components/diseaseStatistics.vue"),
  },
  {
    path: "/blood",
    name: "blood",
    component: () => import("../../src/components/blood.vue"),
  },
    {
    path: "/apache",
    name: "apache",
    component: () => import("../../src/components/apache.vue"),
  },
    {
    path: "/score",
    name: "score",
    component: () => import("../../src/components/score.vue"),
  },
  {
    path: "/Statistics",
    name: "Statistics",
    component: () => import("../../src/components/Statistics.vue"),
  },
];
// 创建路由
const router = createRouter({
  history: createWebHashHistory(),
  routes, // 路由配置简写形式，同 routes: routes
});
// 导出 router
export default router;
